/**
 * 
 */
package com.jie.eclipse.pan.gef.listener;

import org.eclipse.gef.dnd.TransferDropTargetListener;
import org.eclipse.swt.dnd.DropTargetEvent;
import org.eclipse.swt.dnd.Transfer;

import com.jie.eclipse.pan.utils.Utils;

/**
 * @author yanjie
 *
 */
public class PanHelperTransferDropTargetListener implements TransferDropTargetListener{

	private Transfer ts = null ;
	
	/**
	 * 
	 */
	public PanHelperTransferDropTargetListener(Transfer ts) {
		this.ts = ts;
	}

	public Transfer getTransfer() {
		return this.ts;
	}

	public boolean isEnabled(DropTargetEvent arg0) {
		return true;
	}

	public void dragEnter(DropTargetEvent arg0) {
		Utils.print("dragEnter");
	}

	
	public void dragLeave(DropTargetEvent arg0) {
		Utils.print("drag leave");
	}

	public void dragOperationChanged(DropTargetEvent arg0) {
		Utils.print("dragOperationChanged");
	}

	public void dragOver(DropTargetEvent arg0) {
		Utils.print("dragOver");
	}

	public void drop(DropTargetEvent arg0) {
		Utils.print("drop");
	}

	/* (non-Javadoc)
	 * @see org.eclipse.swt.dnd.DropTargetListener#dropAccept(org.eclipse.swt.dnd.DropTargetEvent)
	 */
	public void dropAccept(DropTargetEvent arg0) {
		Utils.print("dropAccept");
	}

}
